﻿<%@ Page Language="VB" MasterPageFile="~/Interfaz/MasterPage.master" AutoEventWireup="false" CodeFile="frmBodegaEntradaMateriales.aspx.vb" Inherits="Interfaz_frmBodegaEntradaMateriales" title="Untitled Page" %>

<%@ Register Src="../Otros/Controls/Calendario.ascx" TagName="Calendario" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table id="TABLE1" onclick="return TABLE1_onclick()" style="border-right: lightblue thin solid;
        border-top: lightblue thin solid; border-left: lightblue thin solid; border-bottom: lightblue thin solid"
        width="80%">
        <tr>
            <td style="width: 15%; height: 20px; text-align: left">
            </td>
            <td style="width: 15px; height: 20px; text-align: left">
            </td>
            <td style="width: 35%; height: 20px; text-align: left">
            </td>
            <td style="width: 24%; height: 20px; text-align: left">
            </td>
            <td style="height: 1%; text-align: left">
            </td>
            <td style="height: 25%; text-align: left">
            </td>
        </tr>
        <tr>
            <td align="center" colspan="6" style="background: black; width: 24%; height: 20px;
                text-align: center">
                <strong>Material Entrante</strong></td>
        </tr>
        <tr>
            <td align="center" colspan="6" style="width: 24%; height: 20px; text-align: center">
                <br />
            </td>
        </tr>
        <tr>
            <td style="width: 14%; height: 20px; text-align: left">
                <strong>Fecha</strong></td>
            <td style="width: 15px; height: 20px; text-align: left">
                <strong style="width: 1%">:</strong></td>
            <td colspan="4" style="width: 35%; height: 20px; text-align: left">
                &nbsp;<uc1:Calendario ID="Calendario1" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="width: 14%; height: 20px; text-align: left">
            </td>
            <td style="width: 15px; height: 20px; text-align: left">
            </td>
            <td colspan="4" style="width: 35%; height: 20px; text-align: left">
            </td>
        </tr>
        <tr>
            <td colspan="6" style="width: 158px; text-align: left">
                <br />
            </td>
        </tr>
        <tr>
            <td colspan="6" style="background: black; width: 100%; text-align: center">
                <strong>Seccion Item</strong></td>
        </tr>
        <tr>
            <td colspan="6" style="width: 100%; text-align: center">
                <br />
            </td>
        </tr>
        <tr style="font-weight: bold">
            <td style="width: 24%; text-align: left">
                Tipo de Ingreso</td>
            <td style="width: 15px; text-align: left">
                :</td>
            <td style="width: 25%; text-align: left">
                <asp:DropDownList ID="DropTipoIngreso" runat="server" Width="190px">
                </asp:DropDownList></td>
            <td style="width: 24%">
            </td>
            <td style="width: 1%">
            </td>
            <td style="width: 25%">
            </td>
        </tr>
        <tr style="font-weight: bold">
            <td style="width: 24%; text-align: left">
            </td>
            <td style="width: 15px; text-align: left">
            </td>
            <td style="width: 25%; text-align: left">
            </td>
            <td style="width: 24%">
            </td>
            <td style="width: 1%">
            </td>
            <td style="width: 25%">
            </td>
        </tr>
        <tr style="font-weight: bold">
            <td style="width: 24%; text-align: left">
                Buscar Material</td>
            <td style="width: 15px; text-align: left">
                :</td>
            <td style="width: 25%; text-align: left">
                &nbsp;</td>
            <td style="width: 24%">
            </td>
            <td style="width: 1%">
            </td>
            <td style="width: 25%">
            </td>
        </tr>
        <tr>
            <td style="width: 24%; text-align: left">
                                <asp:CheckBox ID="CheckCodigo" runat="server" Text="Codigo" /></td>
            <td style="width: 15px; text-align: left">
                <strong>:</strong></td>
            <td style="width: 25%; text-align: left">
                                <asp:DropDownList ID="DropCodigoMateriales" runat="server" Width="190px">
                                </asp:DropDownList></td>
            <td style="width: 24%">
            </td>
            <td style="width: 1%">
                <strong></strong>
            </td>
            <td style="width: 25%">
            </td>
        </tr>
        <tr>
            <td style="width: 24%; text-align: left">
                                <asp:CheckBox ID="CheckFamilia" runat="server" Text="Familia" /></td>
            <td style="width: 15px; text-align: left">
                <strong>:</strong></td>
            <td style="width: 25%; text-align: left">
                                <asp:DropDownList ID="DropFamilias" runat="server" Width="190px">
                                </asp:DropDownList>
                                <asp:Button ID="BtnBuscar" runat="server" Text="Buscar" Width="100px" /></td>
            <td style="width: 24%">
                </td>
            <td style="width: 1%">
                <strong></strong></td>
            <td style="width: 25%">
                                </td>
        </tr>
        <tr runat="server" id ="FilaMaterial">
            <td style="width: 24%; text-align: left" >
                Material</td>
            <td style="width: 15px; text-align: left">
                <strong>:</strong></td>
            <td style="width: 25%; text-align: left">
                                <asp:DropDownList ID="DropMaterial" runat="server" Width="190px">
                                </asp:DropDownList></td>
            <td style="width: 24%">
            </td>
            <td style="width: 1%">
            </td>
            <td style="width: 25%">
            </td>
        </tr>
        <tr>
            <td style="width: 24%; text-align: left"><br/>
            </td>
            <td style="width: 15px; text-align: left">
            </td>
            <td style="width: 25%; text-align: left">
            </td>
            <td style="width: 24%">
            </td>
            <td style="width: 1%">
            </td>
            <td style="width: 25%">
            </td>
        </tr>
        <tr>
            <td style="width: 24%; text-align: left">
                                Fila
            </td>
            <td style="width: 15px; text-align: left">
                <strong>:</strong></td>
            <td style="width: 25%; text-align: left">
                                <asp:DropDownList ID="DropFila" runat="server" Width="190px">
                                </asp:DropDownList></td>
            <td style="width: 24%">
                Columna</td>
            <td style="width: 1%">
                <strong>:</strong></td>
            <td style="width: 25%">
                                <asp:DropDownList ID="DropColumna" runat="server" Width="190px">
                                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 24%; text-align: left">
                Cantidad</td>
            <td style="width: 15px; text-align: left">
                <strong>:</strong></td>
            <td style="width: 25%; text-align: left">
                                <asp:TextBox ID="TxtCantidad" runat="server" Width="190px"></asp:TextBox></td>
            <td style="width: 24%">
                Detalle</td>
            <td style="width: 1%">
                <strong>:</strong></td>
            <td style="width: 25%">
                                <asp:TextBox ID="TxtDetalle" runat="server" Width="190px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 24%; text-align: left">
                                N° Orden de Compra</td>
            <td style="width: 15px; text-align: left">
                <strong>:</strong></td>
            <td style="width: 25%; text-align: left">
                                <asp:DropDownList ID="DropOC" runat="server" Width="190px">
                                </asp:DropDownList>
                                <asp:Button ID="BtnOC" runat="server" Text="Cargar" Width="100px" /></td>
            <td style="width: 24%">
            </td>
            <td style="width: 1%">
            </td>
            <td style="width: 25%">
            </td>
        </tr>
        <tr>
            <td style="width: 24%; text-align: left">
                Fecha de Pedido</td>
            <td style="width: 15px; text-align: left">
                <strong>:</strong></td>
            <td style="width: 25%; text-align: left">
                                <asp:TextBox ID="TxTFechaPedido" runat="server" Width="190px"></asp:TextBox></td>
            <td style="width: 24%">
                Proveedor</td>
            <td style="width: 1%">
                <strong>:</strong></td>
            <td style="width: 25%">
                                <asp:TextBox ID="TxTProveedor" runat="server" Width="190px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 24%; text-align: left">
                                Condicion de Pago</td>
            <td style="width: 15px; text-align: left">
                <strong>:</strong></td>
            <td style="width: 25%; text-align: left">
                                <asp:TextBox ID="TxTCondPago" runat="server" Width="190px"></asp:TextBox></td>
            <td style="width: 24%">
                Comprador</td>
            <td style="width: 1%">
                <strong>:</strong></td>
            <td style="width: 25%">
                                <asp:TextBox ID="TxTComprador" runat="server" Width="190px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 158px; text-align: left">
            </td>
            <td style="width: 15px; text-align: left">
            </td>
            <td style="width: 25%; text-align: left">
            </td>
            <td style="width: 156px">
            </td>
            <td>
            </td>
            <td style="width: 25%">
            </td>
        </tr>
        <tr>
            <td colspan="6" style="width: 100%; text-align: center">
                    <asp:GridView ID="GridBodega"  runat="server" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
                                    ForeColor="#333333" GridLines="None"  Width="933px" CssClass="mGrid"  
                                    OnRowCancelingEdit="GridBodega_RowCancelingEdit" OnRowDeleting="GridBodega_RowDeleting"
                                    OnRowEditing="GridBodega_RowEditing" OnRowUpdating="GridBodega_RowUpdating">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField DataField="ITEM" HeaderText="Item">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="UNIDAD" HeaderText="Unidad">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DETALLE" HeaderText="Detalle">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CANTIDAD" HeaderText="Cantidad">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PRECIOUNITARIO" HeaderText="Precio Unitario">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CODMATERIAL" HeaderText="Codigo Material" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="itemSelector" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="FILA" HeaderText="Fila" />
                            <asp:BoundField DataField="COLUMNA" HeaderText="Columna" />
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
             <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
             <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
             <EditRowStyle BackColor="#2461BF" />
             <AlternatingRowStyle BackColor="White" />
             
                     
                    </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="6" style="width: 100%; text-align: center">
                            <asp:Button ID="Button1" runat="server" Text="Ingresar" Width="100px" /><asp:Button ID="Button3" runat="server" Text="Limpiar" Width="100px" /></td>
        </tr>
        <tr>
            <td style="width: 158px; text-align: left">
                <br />
            </td>
            <td style="width: 15px; text-align: left">
            </td>
            <td style="width: 206px; text-align: left">
            </td>
            <td style="width: 156px">
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="6" style="width: 100%; text-align: center">
                &nbsp;</td>
        </tr>
    </table>
    <br />
</asp:Content>

